home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Hacking & Misc / UNIX Cracking / MacCracSource.sit / MacCrac.source / Source / standards.h < prev    next >
Text File  |  1995-01-18  |  1KB  |  61 lines

  1. /* @(#)44       1.7  com/inc/standards.h, bos, bos320 6/16/90 00:14:02 */
  2. /*
  3.  * COMPONENT_NAME: (INCSTD) Standard Include Files
  4.  *
  5.  * FUNCTIONS:
  6.  *
  7.  * ORIGINS: 27
  8.  *
  9.  * (C) COPYRIGHT International Business Machines Corp. 1989
  10.  * All Rights Reserved
  11.  * Licensed Materials - Property of IBM
  12.  *
  13.  * US Government Users Restricted Rights - Use, duplication or
  14.  * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  15.  */
  16. #ifndef _H_STANDARDS
  17. #define _H_STANDARDS
  18.  
  19. /* These directives must be processed in the current order when compiled with
  20.  * cc or they will not work correctly.
  21.  */
  22.  
  23.  
  24. #ifdef _XOPEN_SOURCE
  25. #ifndef _POSIX_SOURCE
  26. #define _POSIX_SOURCE
  27. #endif
  28. #ifndef _ANSI_C_SOURCE
  29. #define _ANSI_C_SOURCE
  30. #endif
  31. #endif
  32.  
  33. #ifdef _POSIX_SOURCE
  34. #ifndef _ANSI_C_SOURCE
  35. #define _ANSI_C_SOURCE
  36. #endif
  37. #endif
  38.  
  39. #ifdef _ALL_SOURCE
  40. #ifndef _XOPEN_SOURCE
  41. #define _XOPEN_SOURCE
  42. #endif
  43. #ifndef _POSIX_SOURCE
  44. #define _POSIX_SOURCE
  45. #endif
  46. #ifndef _ANSI_C_SOURCE
  47. #define _ANSI_C_SOURCE
  48. #endif
  49. #endif
  50.  
  51. #if (!defined (_XOPEN_SOURCE)) &&  (!defined (_POSIX_SOURCE)) && (!defined (_ANSI_C_SOURCE))
  52. #define _XOPEN_SOURCE
  53. #define _POSIX_SOURCE
  54. #define _ANSI_C_SOURCE
  55. #ifndef _ALL_SOURCE
  56. #define _ALL_SOURCE
  57. #endif
  58. #endif
  59.  
  60. #endif /* _H_STANDARDS */
  61.